#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([base/ZLog.c])
AC_CONFIG_HEADERS([config.h])

AC_DISABLE_STATIC
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_PROG_AR

AC_PROG_LIBTOOL

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lpthread':
AC_CHECK_LIB([pthread], [main])

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([gettimeofday memset munmap select strerror strrchr])

AC_CONFIG_FILES([Makefile
				base/Makefile
				proxy/Makefile
				camera/Makefile
				tools/Makefile
				tools/yuv2bmp/Makefile
				tools/pcap_parser/Makefile
				])
AC_OUTPUT
